import zhongguo from "@/assets/mapJson/data-city.json";
import beijing from "@/assets/mapJson/data-beijing.json";
import bjmiyun from "@/assets/mapJson/data-bjmiyun.json";
import zhejiang from "@/assets/mapJson/data-zhejiang.json";
import huzhou from "@/assets/mapJson/data-huzhou.json";
import jiaxing from "@/assets/mapJson/data-jiaxing.json";
import hangzhou from "@/assets/mapJson/data-hangzhou.json";
import shaoxing from "@/assets/mapJson/data-shaoxing.json";
import ningbo from "@/assets/mapJson/data-ningbo.json";
import zhoushan from "@/assets/mapJson/data-zhoushan.json";
import quzhou from "@/assets/mapJson/data-quzhou.json";
import jinhua from "@/assets/mapJson/data-jinhua.json";
import taizhou from "@/assets/mapJson/data-taizhou.json";
import lishui from "@/assets/mapJson/data-lishui.json";
import wenzhou from "@/assets/mapJson/data-wenzhou.json";
import qingtian from "@/assets/mapJson/qingtian.json";
// ...

const mapDict = {
  "浙江省": "zhejiang",
  "湖州市": "huzhou",
  "嘉兴市": "jiaxing",
  "杭州市": "hangzhou",
  "绍兴市": "shaoxing",
  "宁波市": "ningbo",
  "舟山市": "zhoushan",
  "衢州市": "quzhou",
  "金华市": "jinhua",
  "台州市": "taizhou",
  "丽水市": "lishui",
  "温州市": "wenzhou",
  "青田": "qingtian"
  // ...
}
console.log(qingtian);
const mapData = {
  beijing,
  bjmiyun,
  zhejiang,
  huzhou,
  jiaxing,
  hangzhou,
  shaoxing,
  ningbo,
  zhoushan,
  quzhou,
  jinhua,
  taizhou,
  lishui,
  wenzhou,
  qingtian
  // ...
}

export function getMap(mapName) {
  const cityName = mapDict[mapName]
  if(cityName){
    return [cityName, mapData[cityName]]
  }
  return []
}
